import request from '@/utils/request'

export function addConfigType(data) {
  return request({
    url: '/sys-service/inner-api/sys/config-type',
    data: data,
    method: 'post'
  })
}

export function delConfigType(id) {
  return request({
    url: '/sys-service/inner-api/sys/config-type/' + id,
    method: 'delete'
  })
}

export function updateConfigType(data) {
  return request({
    url: '/sys-service/inner-api/sys/config-type',
    data: data,
    method: 'put'
  })
}

export function getConfigType(id) {
  return request({
    url: '/sys-service/inner-api/sys/config-type/' + id,
    method: 'get'
  })
}

export function pageConfigType(data) {
  return request({
    url: '/sys-service/inner-api/sys/config-type/page',
    method: 'post',
    data: data
  })
}
